package com.hunanwenli.movie.mapper;

import com.hunanwenli.entity.AllCommentary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface AllCommentaryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AllCommentary record);

    int insertSelective(AllCommentary record);

    AllCommentary selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AllCommentary record);

    int updateByPrimaryKey(AllCommentary record);

    List<AllCommentary> selectByUidLimit5(@Param("uid") int uid,@Param("start") int start);

    int selectByUid(Integer uid);

    List<AllCommentary> selectObjectByUid(int uid);

    List<AllCommentary> selectJoinKeepByUid(int uid);

    List<AllCommentary> selectJoinLikeByUid(int uid);

    List<AllCommentary> selectByUidOrderLimit5(int start);

    int selectCountId();
}